﻿<div class="style-form">

<?php echo CHtml::beginForm('','post',array('enctype'=>'multipart/form-data')); ?>

	<p class="note">Các thông tin chứa <span class="required">*</span> là bắt buộc.</p>

	<?php //echo CHtml::errorSummary(array($model,$profile)); ?>

	<dl>
        <dt>
		<?php echo CHtml::activeLabelEx($model,'username'); ?>
        </dt>
        <dd>
		<?php echo CHtml::activeTextField($model,'username',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo CHtml::error($model,'username'); ?>
        </dd>
	</dl>

	<dl>
		<dt><?php echo CHtml::activeLabelEx($model,'password'); ?></dt>
		<dd><?php echo CHtml::activePasswordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo CHtml::error($model,'password'); ?></dd>
	</dl>

	<dl>
		<dt><?php echo CHtml::activeLabelEx($model,'email'); ?></dt>
		<dd><?php echo CHtml::activeTextField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo CHtml::error($model,'email'); ?></dd>
	</dl>

	<dl>
		<dt><?php echo CHtml::activeLabelEx($model,'superuser'); ?></dt>
		<dd><?php echo CHtml::activeDropDownList($model,'superuser',User::itemAlias('AdminStatus')); ?>
		<?php echo CHtml::error($model,'superuser'); ?></dd>
	</dl>

	<dl>
		<dt><?php echo CHtml::activeLabelEx($model,'status'); ?></dt>
		<dd><?php echo CHtml::activeDropDownList($model,'status',User::itemAlias('UserStatus')); ?>
		<?php echo CHtml::error($model,'status'); ?></dd>
	</dl>

	<dl>
        <dt></dt>
        <dd><div class="button">
		<a href="javascript:$('form').submit();"><?php echo $model->isNewRecord ? 'Tạo mới' : 'Lưu' ?></a>
        </div>
        </dd>        
	</dl>

<?php echo CHtml::endForm(); ?>

</div><!-- form -->